#ifndef __ZLINK_CALLBACK_H__
#define __ZLINK_CALLBACK_H__

#include "libutils2/message_queue.h"

#define WLAN_NAME "wlan0"

#define ZLINK_AV_CHANNEL 0
#define ZLINK_SPK_CHANNEL 1
#define ZLINK_RECORD_CHANNEL 2

#define ZLINK_USER_NAME "zyfTest"
#define ZLINK_USER_PASS "11111111"

#define ZLINK_AV_CHANNEL 0
#define ZLINK_SPK_CHANNEL 1
#define ZLINK_RECORD_CHANNEL 2


#define APP_zlink_media_frame_rate 25

// #define VIDEO_WIDTH   1280
// #define VIDEO_HEIGHT  720
#define VIDEO_FRAME_RATE  APP_zlink_media_frame_rate
#define VIDEO_H264_GOPSIZE 30


#define MAX_ZLINK_NUM 4


#define AUDIO_FORMAT   AUDIO_s16le
#define AUDIO_SAMPLE_RATE 16000
#define AUDIO_CHANNELS  1


struct zlink_handle {
	struct message msg;
	int sid;
	int avid;
	char *mac_addr;
	ZLink_SessionInfo sInfo;
};

int init_zlink_media(void);
struct zlink_handle *open_zlink_handle(char *data);
void wait_packet_timeout(struct zlink_handle *handle, int wait_cnt, int timeout_ms);

#endif			/* __ZLINK_CALLBACK_H__ */
